
        <script type="text/javascript">
            dojo.require("dojo.parser");
            dojo.require("dojox.grid.DataGrid");
            dojo.require("dojo.data.ItemFileReadStore");
            dojo.require("dijit.layout.BorderContainer");
        </script>            
        <!-- The grid container -->
         <div dojoType="dijit.layout.BorderContainer" id="theBorderContainer"> 
            <div id="theGridContainer">
            <?php if(is_array($this->data)) : ?>
                <script type="text/javascript">               
                var theDataStore = new dojo.data.ItemFileReadStore({data: <?php printf("{'identifier':'%s','label':'Item','items':%s}",$this->identifier,json_encode($this->data)) ?>});
                </script>
                <!-- Grid -->
                <table dojoType="dojox.grid.DataGrid" id="theGrid" jsId="theGrid" store="theDataStore" queryOptions="{ignoreCase:true}" rowSelector="0px" columnReordering="false" autoHeight="true" autoWidth="true" rowsPerPage=1>
                    <thead>
                        <tr>
                            <?php foreach($this->meta['headers'] as $col) : ?>
                            <th noresize="true" width="<?php echo $col[1] ?>" field="<?php echo $col[0] ?>"><?php echo $col[2] ?></th>
                            <?php endforeach ?>
                        </tr>
                    </thead>
                    <script type="dojo/method" event="onClick" args="e"> 
                        click(e); 
                    </script>
                </table>
                <!--/ Grid -->
            <?php endif ?>
          </div>
            </div>